<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: auto;
          }
         h1{
            text-align: center;
         }
         table{
            position: relative;
            top: 30px;
         }
    </style>
</head>
<body>
    <h1>注册</h1>
    <table  border="1px">
        <tr>
            <td>用户名</td>
            <td><input type="text"></td>
        </tr>
        <tr>
            <td>密码</td>
            <td><input type="text"></td>
        </tr>
        <tr>
            <td colspan="2" align="center"><button onclick="fu()">注册</button></td>
        </tr>
        <script>
            var inp = document.querySelectorAll('input')[0]
        var inp1 = document.querySelectorAll('input')[1]
        function fu(){
            var obj ={                                                           
                acount: inp.value,
                password: inp1.value,
            } 
            localStorage.setItem("message", JSON.stringify(obj))
             location.assign('./项目登录.html')
        }
        </script>
</body>
</html>